package jp.java.test1.pkg20_29.test23;

public class Main {

	public static void main(String[] args) {
		Outer outer = new Outer();
		Outer.Inner i1 = outer.getInner();
		Outer.Inner i2 = outer.getInner();
		Outer.Inner i3 = outer.getInner();
		System.out.println(i1.num);
	}
}

class Outer {
	public Inner getInner() {
		return new Inner();
	}
	class Inner {
		public static int num = 0;
		public Inner() {
			num ++;
		}
	}
}